package com.tjtt.gwm.service.impl;

import java.util.List;
import java.util.Map;

import com.tjtt.gwm.dao.ReportUpdateDao;
import com.tjtt.gwm.service.ReportUpdateService;
import com.tjtt.tdm.base.PageResult;
import com.tjtt.tdm.flow.bean.FlowTaskInfo;

public class ReportUpdateServiceImpl implements ReportUpdateService {
	
	private ReportUpdateDao reportUpdateDao;
	

	public ReportUpdateDao getReportUpdateDao() {
		return reportUpdateDao;
	}

	public void setReportUpdateDao(ReportUpdateDao reportUpdateDao) {
		this.reportUpdateDao = reportUpdateDao;
	}

	@Override
	public void saveObject(Object object) {
		this.reportUpdateDao.saveObject(object);
	}

	@Override
	public Object getDataById(Class clazz, Long id) {
		return this.reportUpdateDao.getDataById(clazz, id);
	}

	@Override
	public void updateObject(Object object) {
		this.reportUpdateDao.updateObject(object);
	}

	@Override
	public FlowTaskInfo getFlowTaskInfo(String flowTaskId) {
		return this.reportUpdateDao.getFlowTaskInfo(flowTaskId);
	}

	@Override
	public void updateFlowTaskInfo(FlowTaskInfo flowTaskInfo) {
		this.reportUpdateDao.updateFlowTaskInfo(flowTaskInfo);
	}

	@Override
	public PageResult queryReportData(Map<String, String> filterMap) {
		return this.reportUpdateDao.queryReportData(filterMap);
	}

	@Override
	public PageResult queryReport(Map filterMap) {
		return this.reportUpdateDao.queryReport(filterMap);
	}

	@Override
	public List getweituodan(String id) {
		return this.reportUpdateDao.getweituodan(id);
	}

	@Override
	public int getreportCount(String id) {
		return this.reportUpdateDao.getreportCount(id);
	}

	/**
	 * 
	 * 描述：报告修改流程---->报告编辑节点 点击【查看报告】
	 * @author wangxd
	 * @date Sep 30, 2015 1:13:55 PM
	 * @return PageResult
	 * @throw
	 */
	public PageResult queryReportUpdateBgList(Map filterMap) {
		return reportUpdateDao.queryReportUpdateBgList(filterMap);
	}
	
	
}
